<script setup lang="ts">
import {computed, ref} from "vue";
const count = ref(1)
const maxCount = computed(() => count.value * 2)

const handleAdd = () => {
  count.value++
}
</script>

<template>
    <button @click="handleAdd">{{ count }}-{{ maxCount }}</button>
</template>

